/*
  console.log(process.argv);
console.log(process.pid);
console.log(process.config);
console.log();*/
// process.setgid(501);

/*
if (process.getgid && process.setgid) {
    console.log(`Current gid: ${process.getgid()}`);
    try {
        process.setgid(501);
        console.log(`New gid: ${process.getgid()}`);
    } catch (err) {
        console.log(`Failed to set gid: ${err}`);
    }
}*/
/*

function log(data) {
   process.stdout.write(data);
}
log("你好！");*/


/*计算 输入结果*/
process.stdout.write("请输入a的值：");
var a,b;
process.stdin.resume(); //开启输入 （默认是关闭的）;
process.stdin.on("data",function (args) {
    if(!a){
        a=args-0;

        process.stdout.write("请输入b的值：");
    }else {
        b=args-0;
        process.stdout.write("计算结果是：" + (a+b)) ;
    }
});

/*
process.stdin.resume();//开启输入

process.stdout.write("请输入a的值：");
var a,b;

process.stdin.on("data",function (args) {
    if(!a){
        a=args;
        process.stdout.write("请输入b的值：");
    }else{
        b=args;
        process.stdout.write("a+b的值为："+(a+b));
    }
});
*/

/*计算 输入结果*/

require("buffer")

